package com.homework08.Database;

import com.homework08.entity.User;

import java.util.HashSet;
import java.util.Set;

public class Database {
    private static final Set<User> USERS = create();
    private static Set<User> create() {
        Set<User> users = new HashSet<>();
        users.add(new User(1,"张三","哈尔滨"));
        users.add(new User(2,"李四","哈尔滨"));
        users.add(new User(3,"王五","吉林"));
        users.add(new User(4,"刘六","吉林"));
        users.add(new User(5,"赵七","长春"));
        users.add(new User(6,"毕八","上海"));
        users.add(new User(7,"唐九","重庆"));
        return users;
    }
    public static Set<User> listSet() {
        return USERS;
    }
}
